package cn.rongdao.jrkabao.model.cashadvance;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.cashadvance.HomeBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by WANG on 17/12/19
 */

public class CashAdvanceModel extends BaseKaMaoModel {
    public static CashAdvanceModel getInstance() {
        return getPresent(CashAdvanceModel.class);
    }

    public void execute(Observer<HomeBean> observer) {
        Observable<HomeBean> observable = mServletApi.getCashAdvanceList(mParams).map(new HttpFunction<HomeBean>());
        toSubscribe(observable, observer);
    }

}
